class Game
    def initialize(id, title, price)
        @id = id
        @title = title
        @price = price
    end

    def showGame
        puts @id + @title + @price.to_s
    end

    #static method
    def self.toStr
        puts "love this game"
    end
end

class SteamGame < Game
    def SteamInfo
        puts "game all in one"
    end
end

SteamGame.toStr
mygame = SteamGame.new("football","欧洲杯",30)
mygame.showGame
mygame.SteamInfo